package com.jr.service.impl;


import com.jr.mapper.JobDao;
import com.jr.entity.Job;
import com.jr.service.JobService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


/**
 * 工作表
 *
 * @author Snoopy
 * @since 1.0.0 2022-12-31
 */
@Service("JobServiceImpl")
public class JobServiceImpl implements JobService {
    @Autowired
    private JobDao jobDao;

    @Override
    public List<Job> getAllJob(Map<String,String> map) {
        List<Job> jobs = jobDao.selectJobs(map);
        return jobs;
    }

    @Override
    public List<Job> selectJobWithEnterprise(Map<String, String> map) {
        return null;
    }

    @Override
    public List<Job> selectJobAll() {
        return jobDao.selectJobAll();
    }

    @Override
    public List<Job> selectJobWitheid(int eid) {
        return jobDao.selectEnterpriseWithJobs(eid);
    }

    @Override
    public Job selectJobByjid(int jid) {
        return jobDao.selectjobbyjid(jid);
    }


}